using System;
using System.Collections.Generic;
using Dict.DataModel;

namespace Dict.Dao
{
    public class TableUltimateSkillDao:DaoBase<TableUltimateSkill>
    {
        public override void AddPrimaryIndex(TableUltimateSkill model)
        {
            cachePrimary[model.SkillId.ToString()] = model;
        }

        public override string GetFileName()
        {
            return "TableUltimateSkill.txt";
        }

        protected override TableUltimateSkill ParseRowData(string[] rowData)
        {
            TableUltimateSkill data = new TableUltimateSkill();
			data.SkillId = rowData [0];
			data.EffectResourceName = rowData [1];
			data.PaintResUrl = rowData [2];
			data.FinalBeHitEffect = rowData [3];
			data.FinalBeHitEffectBone = rowData [4];
			data.FinalBeHitOwnEffect = rowData [5];
			data.FinalBeHitOwnEffectBone = rowData [6];

            if (string.IsNullOrEmpty(rowData[7]))
            {
                data.IsFinalCameraRun = 0;
            }
            else
            {
                data.IsFinalCameraRun = int.Parse(rowData[7]);
            }
			data.ChangeLeftWeaponResName = rowData [8];
			data.ChangeRightWeaponResName = rowData [9];
			data.ChangeFaceInfo = rowData [10];
			data.PositionSpecialDeal = rowData [11];
			data.UltiAudio = rowData [12];
			data.UltiHitAudio = rowData [13];

            return data;
        }



    }

}
